package com.amigo.online.common.param.dto.video;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;
import java.util.List;

public class AdvApplyDto {
	
	/* 广告信息 */
	@Digits(integer=20,fraction=0)
	private Long userId; // 用户ID
	@Min(0)
	private Integer totalprice; // 总价
	@Digits(integer=20,fraction=0)
	private Long videoId; // 对应视频ID
	@Min(0)
	@Max(10)
	private Integer checkstatus; // 审核状态 0待审核1通过2不通过
	@NotNull
	@Min(0)
	@Digits(integer=10,fraction=0)
	private Integer day; // 播放天数
	@Digits(integer=20,fraction=0)
	private Long startTime; // 预约开始时间
	@Digits(integer=20,fraction=0)
	private Long endTime; // 预约结束时间
	@NotNull
	@Digits(integer=20,fraction=0)
	private Long advBundleCode;// 套餐ID
	@NotEmpty
	private List<Long> areaIds; // 所选地区
	@Min(0)
	private Integer type;
	@NotBlank
	@Length(min = 0,max = 555)
	private String video;	//视频信息
	@NotBlank
	private String cover;
	@Min(0)
	private Integer duration;
	@NotBlank
	private String longitude;
	@NotBlank
	private String latitude;
	@NotBlank
	@Length(min = 1, max = 50)
	private String title;
	@NotBlank
	@Length(min = 0, max = 200)
	private String content;
	@Min(0)
	private Integer destroy;
	@Min(0)
	private Integer ads;
	@Length(min = 0,max = 350)
	private String href;
	@NotNull
	private Integer width;
	@NotNull
	private Integer height;
		
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public Integer getTotalprice() {
		return totalprice;
	}
	public void setTotalprice(Integer totalprice) {
		this.totalprice = totalprice;
	}
	public Long getVideoId() {
		return videoId;
	}
	public void setVideoId(Long videoId) {
		this.videoId = videoId;
	}
	public Integer getCheckstatus() {
		return checkstatus;
	}
	public void setCheckstatus(Integer checkstatus) {
		this.checkstatus = checkstatus;
	}
	public Integer getDay() {
		return day;
	}
	public void setDay(Integer day) {
		this.day = day;
	}
	public Long getStartTime() {
		return startTime;
	}
	public void setStartTime(Long startTime) {
		this.startTime = startTime;
	}
	public Long getEndTime() {
		return endTime;
	}
	public void setEndTime(Long endTime) {
		this.endTime = endTime;
	}
	public Long getAdvBundleCode() {
		return advBundleCode;
	}
	public void setAdvBundleCode(Long advBundleCode) {
		this.advBundleCode = advBundleCode;
	}
	public List<Long> getAreaIds() {
		return areaIds;
	}
	public void setAreaIds(List<Long> areaIds) {
		this.areaIds = areaIds;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public String getVideo() {
		return video;
	}
	public void setVideo(String video) {
		this.video = video;
	}
	public String getCover() {
		return cover;
	}
	public void setCover(String cover) {
		this.cover = cover;
	}
	public Integer getDuration() {
		return duration;
	}
	public void setDuration(Integer duration) {
		this.duration = duration;
	}
	public String getLongitude() {
		return longitude;
	}
	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}
	public String getLatitude() {
		return latitude;
	}
	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Integer getDestroy() {
		return destroy;
	}
	public void setDestroy(Integer destroy) {
		this.destroy = destroy;
	}
	public Integer getAds() {
		return ads;
	}
	public void setAds(Integer ads) {
		this.ads = ads;
	}
	public String getHref() {
		return href;
	}
	public void setHref(String href) {
		this.href = href;
	}
	public Integer getWidth() {
		return width;
	}
	public void setWidth(Integer width) {
		this.width = width;
	}
	public Integer getHeight() {
		return height;
	}
	public void setHeight(Integer height) {
		this.height = height;
	}


}
